import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'

import Cart from './Cart/cart.js'
import User from './user'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    Cart,
    User
  },
  plugins: [
    createPersistedState({
      key: '2306-vue2-mobile'
    })
  ]
})

export default store
